package com.cy.sys.controller;

import com.cy.common.pojo.JsonResult;
import com.cy.sys.service.UserServcie;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/")
public class sysController {
    @RequestMapping("doLoginUI")
    public String doLoginUI(){
        return "login";
    }


    @RequestMapping("doindexUI")
    public String indexUI(){

        return "starter";
    }
    @RequestMapping("doPageUI")
    public  String doPageUI(){
        return "common/page";

    }
    @RequestMapping("add")
    public String add(){

        return "add";
    }
    @RequestMapping("doFIndEvaluate")
    public String doFIndEvaluate(Integer c,Integer d){
        System.out.println(c+"dwadaw"+d);
        return "starter";
    }

    @RequestMapping("{module}/{moduleUI}")
    public String doModuleUI(@PathVariable String moduleUI) {
        // System.out.println("==doModuleUI==");
        return "sys/"+moduleUI;
    }

}
